<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  watch: {
    '$route' () {
      let locationHash = window.location.hash;
      //把路由存在缓存中，此处你可以console.log看出路由变化
      sessionStorage.setItem("hashLocation",locationHash);
    }
  },
}
</script>
